# 创建学生

class Student:
    name:str
    age:int
    addr:str

    def __init__(self,name,age,addr):
        self.name=name
        self.age=age
        self.addr=addr

    def print_info(self):
        print(f"学生{self.name}，年龄{self.age}岁，住在{self.addr}")

def input_stu_info():
    name=input("请输入学生姓名：")
    age=int(input("请输入学生年龄："))
    addr=input("请输入学生地址：")

    return Student(name, age, addr)


if __name__ == '__main__':
    stu=input_stu_info()
    stu.print_info()